package pers.youqu.item.service;

import com.baomidou.mybatisplus.extension.service.IService;
import pers.youqu.common.dto.PageDTO;
import pers.youqu.item.dto.BrandDTO;
import pers.youqu.item.po.Brand;

import java.util.List;

/**
 * @author Jason
 * @version 1.0.0
 * @date 2020/12/5 14:18
 * @Description TODO
 */
public interface BrandService extends IService<Brand> {
    BrandDTO findBrandById(Long id);

    List<BrandDTO> findBrandsByIds(List<Long> ids);

    PageDTO<BrandDTO> findBrandsByPage(Integer page,Integer rows,String key);

    List<BrandDTO> findBrandsByCategoryId(Long id);

    void saveBrand(BrandDTO brandDTO);

    void updateBrand(BrandDTO brandDTO);

    void deleteBrand(Long id);
}
